<?php

/**
 * Researchoverlay form.
 *
 * @package    Redsea20
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ResearchoverlayForm extends BaseResearchoverlayForm
{
  public function configure()
  {
      $this->useFields(array('id', 'researchid', 'overlaytitle', 'overlaydescription', 'overlayimage',
          'slat', 'nlat', 'wlng', 'elng'));

      $this->widgetSchema['researchid'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['slat'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['nlat'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['wlng'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['elng'] = new sfWidgetFormInputHidden();

      $this->validatorSchema['slat'] = new sfValidatorString(array('required' => false));
      $this->validatorSchema['nlat'] = new sfValidatorString(array('required' => false));
      $this->validatorSchema['wlng'] = new sfValidatorString(array('required' => false));
      $this->validatorSchema['elng'] = new sfValidatorString(array('required' => false));
  }
}
